# coding: utf-8
# @Time    : 2023/4/10 11:19
# @Author  : gongshuangxi
# @Email   : sxgong@topdatasec.com

import sys
from config import conf
from libs.redprint import Redprint
from libs.processlog import process_logger


try:
    # python2
    reload(sys)
    sys.setdefaultencoding('utf-8')
except:
    # python3
    pass

redprint = Redprint

tdslogger = process_logger(conf.LOG_SWITCH, conf.LOG_DIR, conf.API_LOG_FILE_NAME,
                         conf.LOG_LEVEL, conf.LOG_MAX_SIZE, conf.LOG_BACKUP_COUNT)

